package com.qing.picture.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qing.picture.model.dto.space.SpaceAddRequest;
import com.qing.picture.model.dto.space.SpaceEditRequest;
import com.qing.picture.model.dto.space.SpaceQueryRequest;
import com.qing.picture.model.dto.space.SpaceUpdateRequest;
import com.qing.picture.model.entity.Space;
import com.qing.picture.model.entity.User;
import com.qing.picture.model.vo.SpaceVo;

import javax.servlet.http.HttpServletRequest;

/**
* @author 86157
* @description 针对表【space(空间)】的数据库操作Service
* @createDate 2025-03-19 16:39:47
*/
public interface SpaceService extends IService<Space> {
 void fillSpaceBySpaceLevel(Space space);

 Long addUserSpace(SpaceAddRequest space, User loginUser);

 boolean updateUserSpace(SpaceUpdateRequest updateRequest, User loginUser);

 boolean editUserSpace(SpaceEditRequest editRequest, User user);
 SpaceVo getSpaceVo(Space space, HttpServletRequest request);
 Page<SpaceVo> getSpaceVoPage(Page<Space> spacePage, HttpServletRequest request);
 QueryWrapper<Space> getQueryWrapper(SpaceQueryRequest spaceQueryRequest);
}
